﻿package net.wangit.view.element.component;

import net.wangit.Page;
import net.wangit.Row;
import net.wangit.context.ActionContext;
import net.wangit.support.ElementWriter;
import net.wangit.view.element.ElementComponent;

public final class HiddenElement extends ElementComponent {

	private static final ElementWriter writer = new HiddenElementWriter();

	public HiddenElement() {
	}

	public HiddenElement(String id) {
		setId(id);
	}

	public HiddenElement(String id, String value) {
		setId(id);
		setDefaultValue(value);
	}

	protected void configure(Row row1) {
	}

	protected ElementWriter getWriter() {
		return writer;
	}

	protected void cloneAfter(ActionContext actioncontext, Page page1) {
	}

	public boolean isAddLabel() {
		return false;
	}

	public int getTdColSpan() {
		return 0;
	}

	public boolean isMarkRequired() {
		return false;
	}

}
